/*
 * @Date: 2021-04-14 17:34:18
 * @LastEditors: ce
 * @LastEditTime: 2021-04-16 16:17:34
 * @FilePath: \test-js\src\js-es6\test-1.js
 */

let json={
  a:"香蕉",
  b:"葡萄"
}
// 默认值
function fun(a,b="web"){
  // console.log(a,b)
}
fun("小红")

//解构赋值+默认值
function fun2({a,b="web"}){
  // console.log(a,b)
}
fun2(json)



let arr2=["a","b","c","d","e","f","g","h","i"]
let obj2={
  a:"aa",
  b:"bb",
  c:"cc",
  d:"dd",
  e:"ee",
  f:"ff",
  g:"gg",
  h:"hh",
  i:"ii"
  }
//for in 循环  
for(const key in obj2){
  // console.log(key)
}


let aa={a:"小艾"}
let bb={b:"小北"}
let cc={c:"小辰"}
let d=Object.assign(aa,bb,cc);
console.log(d)




let syb=Symbol('小明')
console.log(syb)  //控制台打出来是红色的
console.log(syb.toString())








